﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AgilePlannerDT.Display.CustomWidgets
{
    /// <summary>
    /// Interaction logic for HelpPresenter.xaml
    /// </summary>
    public partial class HelpDialog  : UserControl
    {
        public HelpDialog()
        {
            InitializeComponent();
      //      this.border.ActualHeight;
            
            TransformGroup group = new TransformGroup();
            ScaleTransform scale = new ScaleTransform(0.6, 0.6);
            TranslateTransform trans = new TranslateTransform((-0.75)*800, 0);
            group.Children.Add(scale);
            group.Children.Add(trans);
            RenderTransform = group;
            
            closeButton.Click += new RoutedEventHandler(closeButton_Click);
        }

        private void closeButton_Click(object sender, RoutedEventArgs e)
        {
            ((Panel)Parent).Children.Remove(this);
        }


    }
}
